package com.zyplayer.dubbo;

import com.alibaba.dubbo.config.spring.context.annotation.DubboComponentScan;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


/**
 * 程序启动器
 */
@SpringBootApplication
@NacosPropertySource(dataId = "dubbo", autoRefreshed = true)
@DubboComponentScan(basePackages = "com.zyplayer.dubbo.service")
//@EnableNacosConfig(globalProperties = @NacosProperties(serverAddr = "127.0.0.1:8848", namespace = "fd05d093-9eed-49c3-94bb-877cb49e3cb2"))
public class Application {
	
	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
}
